Tabnine Logo
AccessControlList.getOwningGroup
Code IndexAdd Tabnine to your IDE (free)

How to use
getOwningGroup
method
in
alluxio.security.authorization.AccessControlList

Best Java code snippets using alluxio.security.authorization.AccessControlList.getOwningGroup (Showing top 7 results out of 315)

origin: Alluxio/alluxio

@Override
public String getGroup() {
 return mAcl.getOwningGroup();
}
origin: Alluxio/alluxio

Acl.AccessControlList.Builder builder = Acl.AccessControlList.newBuilder();
builder.setOwningUser(acl.getOwningUser());
builder.setOwningGroup(acl.getOwningGroup());
origin: Alluxio/alluxio

protected MoreObjects.ToStringHelper toStringHelper() {
 return MoreObjects.toStringHelper(this)
   .add("id", mId)
   .add("name", mName)
   .add("parentId", mParentId)
   .add("creationTimeMs", mCreationTimeMs)
   .add("pinned", mPinned)
   .add("deleted", mDeleted)
   .add("ttl", mTtl)
   .add("ttlAction", mTtlAction)
   .add("directory", mDirectory)
   .add("persistenceState", mPersistenceState)
   .add("lastModificationTimeMs", mLastModificationTimeMs)
   .add("owner", mAcl.getOwningUser())
   .add("group", mAcl.getOwningGroup())
   .add("permission", mAcl.getMode())
   .add("ufsFingerprint", mUfsFingerprint);
}
origin: Alluxio/alluxio

 /**
  * Serialize an AccessControlList object.
  * @param accessControlList the ACL object to be serialized
  * @param jsonGenerator json generator
  * @param serializerProvider default serializer
  * @throws IOException
  */
 @Override
 public void serialize(AccessControlList accessControlList, JsonGenerator jsonGenerator,
   SerializerProvider serializerProvider) throws IOException {
  jsonGenerator.writeStartObject();
  jsonGenerator.writeStringField(OWNER_FIELD, accessControlList.getOwningUser());
  jsonGenerator.writeStringField(OWNING_GROUP_FIELD, accessControlList.getOwningGroup());
  jsonGenerator.writeObjectField(STRING_ENTRY_FIELD, accessControlList.toStringEntries());
  jsonGenerator.writeEndObject();
 }
}
origin: Alluxio/alluxio

/**
 * Tests the constructor contract.
 */
@Test
public void constructor() {
 AccessControlList acl = new AccessControlList();
 Assert.assertEquals("", acl.getOwningUser());
 Assert.assertEquals("", acl.getOwningGroup());
}
origin: Alluxio/alluxio

/**
 * Tests getting and setting owner and group.
 */
@Test
public void ownerGroup() {
 AccessControlList acl = new AccessControlList();
 acl.setOwningUser(OWNING_USER);
 acl.setOwningGroup(OWNING_GROUP);
 Assert.assertEquals(OWNING_USER, acl.getOwningUser());
 Assert.assertEquals(OWNING_GROUP, acl.getOwningGroup());
}
origin: Alluxio/alluxio

/**
 * @param acl the access control list to convert
 * @return the proto representation of this object
 */
public static PAcl toProto(AccessControlList acl) {
 PAcl.Builder pAcl = PAcl.newBuilder();
 pAcl.setOwner(acl.getOwningUser());
 pAcl.setOwningGroup(acl.getOwningGroup());
 pAcl.setMode(acl.getMode());
 if (acl.hasExtended()) {
  for (AclEntry entry : acl.getExtendedEntries().getEntries()) {
   pAcl.addEntries(toProto(entry));
  }
 }
 pAcl.setIsDefault(false);
 return pAcl.build();
}
alluxio.security.authorizationAccessControlListgetOwningGroup

Popular methods of AccessControlList

  • <init>
    Creates a new instance where owning user and owning group are initialized to empty strings, and no a
  • getEntries
    Returns a list of AclEntry which represent this ACL instance. The mask will only be included if exte
  • getOwningUser
  • hasExtended
  • setEntry
    Sets an entry into the access control list. If an entry with the same type and subject already exist
  • setOwningGroup
    Sets owning group.
  • setOwningUser
    Sets owning user.
  • getMode
  • getPermission
    Gets the permitted actions for a user. When AccessControlList is not modified after calling getPermi
  • setMode
    Sets permitted actions for owning user, owning group, and other based on the mode. The format of mod
  • toString
  • toStringEntries
  • toString,
  • toStringEntries,
  • checkPermission,
  • clearEntries,
  • fromStringEntries,
  • getOtherActions,
  • getOwningGroupActions,
  • getOwningUserActions,
  • removeEntry

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now