/** * Creates a new {@code PasswordCapabilityType} instance by deeply copying a given {@code PasswordCapabilityType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public PasswordCapabilityType(final PasswordCapabilityType o) { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 super(o); if (o == null) { throw new NullPointerException("Cannot create a copy of 'PasswordCapabilityType' from 'null'."); } // CBuiltinLeafInfo: java.lang.Boolean this.returnedByDefault = ((o.returnedByDefault == null)?null:o.isReturnedByDefault()); // CBuiltinLeafInfo: java.lang.Boolean this.readable = ((o.readable == null)?null:o.isReadable()); }
protected void assertPasswordCapability(PasswordCapabilityType capPassword) { assertTrue("Wrong password capability readable flag: "+capPassword.isReadable(), capPassword.isReadable() != Boolean.TRUE); }
@Override protected void assertPasswordCapability(PasswordCapabilityType capPassword) { assertTrue("Wrong password capability readable flag: "+capPassword.isReadable(), capPassword.isReadable() == Boolean.TRUE); }
@Override protected void assertPasswordCapability(PasswordCapabilityType capPassword) { assertTrue("Wrong password capability readable flag: "+capPassword.isReadable(), capPassword.isReadable() == Boolean.TRUE); }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public PasswordCapabilityType clone() { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final PasswordCapabilityType clone = ((PasswordCapabilityType) super.clone()); // CBuiltinLeafInfo: java.lang.Boolean clone.returnedByDefault = ((this.returnedByDefault == null)?null:this.isReturnedByDefault()); // CBuiltinLeafInfo: java.lang.Boolean clone.readable = ((this.readable == null)?null:this.isReadable()); return clone; } }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { Boolean theReturnedByDefault; theReturnedByDefault = this.isReturnedByDefault(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "returnedByDefault", theReturnedByDefault), currentHashCode, theReturnedByDefault); } { Boolean theReadable; theReadable = this.isReadable(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "readable", theReadable), currentHashCode, theReadable); } return currentHashCode; }
private boolean getEvaluateWeak(LensProjectionContext projCtx) { CredentialsCapabilityType credentialsCapabilityType = ResourceTypeUtil.getEffectiveCapability(projCtx.getResource(), CredentialsCapabilityType.class); if (credentialsCapabilityType != null) { PasswordCapabilityType passwordCapabilityType = credentialsCapabilityType.getPassword(); if (passwordCapabilityType != null) { if (passwordCapabilityType.isEnabled() != Boolean.FALSE) { Boolean readable = passwordCapabilityType.isReadable(); if (readable != null && readable) { // If we have readable password then we can evaluate the weak mappings // normally (even if the reads return incomplete values). return true; } } } } // Password not readable. Therefore evaluate weak mappings only during add operaitons. // We do not know whether there is a password already set on the resource. And we do not // want to overwrite it every time. return projCtx.isAdd(); }
protected void assertNativeCredentialsCapability(CredentialsCapabilityType capCred) { PasswordCapabilityType passwordCapabilityType = capCred.getPassword(); assertNotNull("password native capability not present", passwordCapabilityType); Boolean readable = passwordCapabilityType.isReadable(); if (readable != null) { assertFalse("Unexpected 'readable' in password capability", readable); } }
lhsReadable = this.isReadable(); Boolean rhsReadable; rhsReadable = that.isReadable(); if (!strategy.equals(LocatorUtils.property(thisLocator, "readable", lhsReadable), LocatorUtils.property(thatLocator, "readable", rhsReadable), lhsReadable, rhsReadable)) { return false;
@Override protected void assertNativeCredentialsCapability(CredentialsCapabilityType capCred) { PasswordCapabilityType passwordCapabilityType = capCred.getPassword(); assertNotNull("password native capability not present", passwordCapabilityType); Boolean readable = passwordCapabilityType.isReadable(); assertNotNull("No 'readable' inducation in password capability", readable); assertTrue("Password not 'readable' in password capability", readable); }
@Override protected void assertNativeCredentialsCapability(CredentialsCapabilityType capCred) { PasswordCapabilityType passwordCapabilityType = capCred.getPassword(); assertNotNull("password native capability not present", passwordCapabilityType); Boolean readable = passwordCapabilityType.isReadable(); assertNotNull("No 'readable' inducation in password capability", readable); assertTrue("Password not 'readable' in password capability", readable); }